<?php
/* @var $this ProductsController */
/* @var $model Products */
/* @var $form CActiveForm */
?>

<div class="form">

    <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'products-form',
	// Please note: When you enable ajax validation, make sure the corresponding
	// controller action is handling ajax validation correctly.
	// There is a call to performAjaxValidation() commented in generated controller code.
	// See class documentation of CActiveForm for details on this.
	'enableAjaxValidation'=>false,
)); ?>

    <p class="note">Fields with <span class="required">*</span> are required.</p>

    <?php echo $form->errorSummary($model); ?>

            <div class="row">
            <?php echo $form->labelEx($model,'PRODUCT_NAME'); ?>
            <?php echo $form->textField($model,'PRODUCT_NAME',array('size'=>50,'maxlength'=>50)); ?>
            <?php echo $form->error($model,'PRODUCT_NAME'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'PRODUCT_ENG_NAME'); ?>
            <?php echo $form->textField($model,'PRODUCT_ENG_NAME',array('size'=>50,'maxlength'=>50)); ?>
            <?php echo $form->error($model,'PRODUCT_ENG_NAME'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'MENU_CODE'); ?>
            <?php echo $form->textField($model,'MENU_CODE'); ?>
            <?php echo $form->error($model,'MENU_CODE'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'DESCRIPTION'); ?>
            <?php echo $form->textArea($model,'DESCRIPTION',array('rows'=>6, 'cols'=>50)); ?>
            <?php echo $form->error($model,'DESCRIPTION'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'FIRST_REG_DT'); ?>
            <?php echo $form->textField($model,'FIRST_REG_DT'); ?>
            <?php echo $form->error($model,'FIRST_REG_DT'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'FIRST_REG_USER'); ?>
            <?php echo $form->textField($model,'FIRST_REG_USER',array('size'=>50,'maxlength'=>50)); ?>
            <?php echo $form->error($model,'FIRST_REG_USER'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'LAST_UPD_DT'); ?>
            <?php echo $form->textField($model,'LAST_UPD_DT'); ?>
            <?php echo $form->error($model,'LAST_UPD_DT'); ?>
        </div>

            <div class="row">
            <?php echo $form->labelEx($model,'LAST_UPD_USER'); ?>
            <?php echo $form->textField($model,'LAST_UPD_USER',array('size'=>50,'maxlength'=>50)); ?>
            <?php echo $form->error($model,'LAST_UPD_USER'); ?>
        </div>

        <div class="row buttons">
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
    </div>

    <?php $this->endWidget(); ?>

</div><!-- form -->